<template>
  <div>
    <button v-on:click="login">登录拉勾</button>
  </div>  
</template>

<script>
import axios from 'axios'

export default {
  name: 'HelloWorld',
  props: {
    msg: String
  },
  methods: {
    login: function() {
      let message = {"user_id":"1", "act_time":"2020-11-08 17:00:00" ,"action":"click", "job_code":"jianfa"}
      axios.post(`/log?parms`, message).then(res => {
          console.log('res=>', res);
          }
      )
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>
